package com.example.stringcloud.controller;

import com.example.stringcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author chensixiang chensixiang1234@gmail.com
 */
@RestController
public class SendMessageController {

    @Resource
    private IMessageProvider messageProvider;

    @GetMapping("/sm")
    public String sendMessage() {
        return messageProvider.send();
    }
}
